
<?php if ($this->pageCount): ?>
    <div class="paginationControl">
        <!-- Previous page link -->
        <?php if (isset($this->previous)): ?>
            <a href="#" onclick="ajaxLink('<?php echo $this->url(array('page' => $this->previous)); ?>'); ">
            < Anterior </a> |
        <?php else: ?>
            <span class="disabled">< Anterior</span> |
        <?php endif; ?>
        <!-- Numbered page links -->
        <?php foreach ($this->pagesInRange as $page): ?>
            <?php if ($page != $this->current): ?>
                <a href="#" onclick="ajaxLink('<?php echo $this->url(array('page' => $page)); ?>'); ">
                    <?php echo $page; ?>
                </a> |
            <?php else: ?>
                <?php echo $page; ?> |
            <?php endif; ?>
        <?php endforeach; ?>
        <!-- Next page link -->
        <?php if (isset($this->next)): ?>
            <a href="#" onclick="ajaxLink('<?php echo $this->url(array('page' => $this->next)); ?>'); ">
            Próximo >
            </a>
        <?php else: ?>
            <span class="disabled">Próximo ></span>
        <?php endif; ?>
    </div>
<?php endif; 